package com.bmf.module.testQuestions.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bmf.core.result.PageResponse;
import com.bmf.module.testQuestions.entity.SmallQuestion;
import com.bmf.module.testQuestions.vo.QuestionCreateVo;
import com.bmf.module.testQuestions.vo.QuestionPageVo;
import com.bmf.module.testQuestions.vo.QuestionResultVo;
import com.bmf.module.testQuestions.vo.QuestionUpdateVo;

import java.util.List;


/**
 * (SmallQuestion)表服务接口
 *
 * @author makejava
 * @since 2022-11-29 18:14:03
 */
public interface SmallQuestionService extends IService<SmallQuestion> {

    PageResponse<QuestionResultVo> selectPage(QuestionPageVo questionPageVo);

    Integer insert(QuestionCreateVo questionCreateVo);

    void update(QuestionUpdateVo questionUpdateVo);

    void delete(List<Integer> ids);

    QuestionResultVo selectOne(Integer id);

    List<QuestionResultVo> selectByIds(List<Integer> ids);

    boolean existByType(Integer topic, Integer questionType);
}
